<template>
  <van-cell is-link center class="myCell">
    <!-- 类名要和下面的定义一样 -->
    <template #icon>
      <i class="iconfont" v-html="icon">{{}}</i>
    </template>
    <template #title>
      <div class="cell-title">
        {{ title }}
      </div>
    </template>
    <template #default>
      <div class="cell-value">
        {{ value }}
      </div>
    </template>
  </van-cell>
</template>

<script>
export default {
  name: 'MyCellvue',
  props: ['icon', 'title', 'value']
}
</script>
<style lang="less" scoped>
.myCell {
  .iconfont {
    font-size: 20px;
    padding-right: 10px;
  }
  .cell-title {
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: left;
    color: #181a39;
    line-height: 20px;
    letter-spacing: 0px;
  }
  .cell-value {
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: right;
    color: #5b5d75;
    line-height: 20px;
    letter-spacing: 0px;
  }
}
</style>
